package cn.com.v2.service.impl;

import cn.com.v2.mapper.ProjectDataMapper;
import cn.com.v2.model.ProjectData;
import cn.com.v2.service.IProjectDataService;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ltx
 */
@Service
public class ProjectDataServiceImpl extends ServiceImpl<ProjectDataMapper, ProjectData> implements IProjectDataService {
	@Autowired
    ProjectDataMapper dataMapper;
	@Override
	public ProjectData getProjectid(String projectId) {
		LambdaQueryWrapper<ProjectData> lambdaQueryWrapper=new LambdaQueryWrapper<>();
		lambdaQueryWrapper.eq(ProjectData::getProjectId, projectId);
		return dataMapper.selectOne(lambdaQueryWrapper);
	}

}
